package com.codeboy.qianghongbao.job;

import android.view.accessibility.AccessibilityEvent;

import com.codeboy.qianghongbao.IStatusBarNotification;
import com.codeboy.qianghongbao.QiangHongBaoService;

/**
 * <p>Created 16/1/16 上午12:32.</p>
 * <p><a href="mailto:codeboy2013@gmail.com">Email:codeboy2013@gmail.com</a></p>
 * <p><a href="http://www.happycodeboy.com">LeonLee Blog</a></p>
 * 
 * @author LeonLee
 * @updator xq
 */
public interface AccessbilityJob {
    /**
     * 获取目标包名
     *
     * @return
     */
    String getTargetPackageName();

    /**
     * 创建Job前触发
     *
     * @param service
     */
    void onCreateJob(QiangHongBaoService service);

    /**
     * 通知到达时触发
     *
     * @param event
     */
    void onReceiveJob(AccessibilityEvent event);

    /**
     * 停止Job
     */
    void onStopJob();

    /**
     * 通知被转发
     *
     * @param service
     */
    void onNotificationPosted(IStatusBarNotification service);

    /**
     * 是否禁止
     *
     * @return
     */
    boolean isEnable();
}
